Welcome to the CtlHTML Control Library Demo Program

Introduction

This program demonstrates the CtlHTML Control Library, which significantly improves the capability of the basic Windows controls. The CtlHTML Control Library helps you create dialog boxes and message boxes using rich text with very little effort, resulting in more attractive, easier to read user interfaces. Best of all, aside from the rich text capabilities, these custom controls and message boxes look exactly like the standard Windows versions, so that programs created using the CtlHTML Control Library have the standard Windows look.

The CtlHTML Control Library subclasses the basic Windows controls. This means that you create dialog boxes using the standard Windows controls. The difference is that you use HTML tagging in the control captions and call CtlHTMLSubclassDialog in response to the WM_INITDIALOG message or the OnInitDialog function in MFC.

For example, this dialog box consists of four controls: an icon control, a static text control, a check box control, and a command button control. All of these controls are subclassed by the CtlHTML Control Library. Note that the static text control is a single control and the text is formatted using HTML tagging. Also note that the text is obtained from a text resource, avoiding the 255-character limit of standard Windows controls.